package com.start.pay.core.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.start.pay.core.entity.StartPayOrderEntity;

public interface StartPayOrderService extends IService<StartPayOrderEntity> {
    /**
     * 根据订单号获取订单信息
     *
     * @param orderNo
     * @return
     */
    default  StartPayOrderEntity getStartPayOrderByOrderNo(String orderNo){
        return getStartPayOrderByOrderNo(orderNo, new LambdaQueryWrapper<StartPayOrderEntity>());
    }

    /**
     * 根据订单查询订单信息
     *
     * @param orderNo
     * @param wrapper
     * @return
     */
    StartPayOrderEntity getStartPayOrderByOrderNo(String orderNo, LambdaQueryWrapper<StartPayOrderEntity> wrapper);
}
